package com.zmytest.one2one;

import com.zmytest.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * Created on 2018/12/24.
 *
 * @author zhangmingyu
 */
@EqualsAndHashCode(callSuper = false)
@Entity
@Data
public class User extends BaseModel<Integer>{

    private String name;

    @OneToOne
    @JoinColumn(name = "identityCardId")
    private IdentityCard identityCard;
}
